﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using $prjsn$.Common;

using Microsoft.VisualStudio.TestTools.UnitTesting;

using ProjectBase.Core;
using ProjectBase.Core.Service;
using ProjectBase.Mvc;

using $prjsn$.Entity.Services;
using $prjsn$.Common.Data.Services;
using $prjsn$.Common.Business.Services;
using $prjsn$.Business.Services;
using $prjsn$.Data.Services;

namespace $safeprojectname$.Business
{
    [TestClass]
    public class RulesToStringTest : TestBase
    {
        [TestMethod]
        public void TranslatorRulesToString()
        {
            var facade = FacadeFactory.CreateFacade<ITranslatorFacade>();
            var rules = facade.ValidationRulesToString(Str.Actions.NoView.Add);
            Assert.IsTrue(rules.IsNotEmpty());
        }

        #region Additional test attributes
        //
        // You can use the following additional attributes as you write your tests:
        //
        // Use ClassInitialize to run code before running the first test in the class
        // [ClassInitialize()]
        // public static void MyClassInitialize(TestContext testContext) { }
        //
        // Use ClassCleanup to run code after all tests in a class have run
        // [ClassCleanup()]
        // public static void MyClassCleanup() { }
        //
        [TestInitialize]
        public override void MyTestInitialize()
        {
            base.MyTestInitialize(); // Use TestInitialize to run code before running each test
        }

        [TestCleanup]
        public override void MyTestCleanup()
        {
            base.MyTestCleanup(); // Use TestCleanup to run code after each test has run
        }
        #endregion
    }
}
